CPP_FILES := $(wildcard *.cpp)
OBJ_FILES := $(notdir $(CPP_FILES:.cpp=.o))
CPP_NEWMAT := $(wildcard newmat10/*.cpp)
OBJ_NEWMAT := $(addprefix newmat10/,$(notdir $(CPP_NEWMAT:.cpp=.o)))

CC := g++
LFLAGS :=
CFLAGS := -Wall -Inewmat10

dosi: $(OBJ_FILES) $(OBJ_NEWMAT)
	$(CC) $(LFLAGS) -o $@ $^

%.o: %.cpp
	$(CC) $(CFLAGS) -c -o $@ $<

newmat10/%.o: newmat10/%.cpp
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f *~ *.o */*~ */*.o dosi

